package com.aijia.custom.product.data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by yejianjun on 2019/1/21.
 */

public class SheetData implements Parcelable {

    private int id; //sheetId
    private String shopName;
    private String wwId;
    private String productName; // 产品名称
    private String name;    //联系人名字
    private String wx;      //联系人微信
    private String mobile;  //联系人手机
    private String address; //联系地址
    private String content; //备注
    private String createDate;  //创建时间
    private String staffName;   //发起人
    private String underDate; // 下单时间
    private int status; // 1红，2黄，3绿，4半黄半绿
    private int contacted; // 0 未联系，大于0 表示已联系
    private int staffId;   // 发起人ID

    public SheetData() {

    }

    protected SheetData(Parcel in) {
        id = in.readInt();
        shopName = in.readString();
        wwId = in.readString();
        productName = in.readString();
        name = in.readString();
        wx = in.readString();
        mobile = in.readString();
        address = in.readString();
        content = in.readString();
        createDate = in.readString();
        staffName = in.readString();
        underDate = in.readString();
        status = in.readInt();
        contacted = in.readInt();
        staffId = in.readInt();
    }

    public static final Creator<SheetData> CREATOR = new Creator<SheetData>() {
        @Override
        public SheetData createFromParcel(Parcel in) {
            return new SheetData(in);
        }

        @Override
        public SheetData[] newArray(int size) {
            return new SheetData[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getWwId() {
        return wwId;
    }

    public void setWwId(String wwId) {
        this.wwId = wwId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWx() {
        return wx;
    }

    public void setWx(String wx) {
        this.wx = wx;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getUnderDate() {
        return underDate;
    }

    public void setUnderDate(String underDate) {
        this.underDate = underDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getContacted() {
        return contacted;
    }

    public void setContacted(int contacted) {
        this.contacted = contacted;
    }

    public int getStaffId() {
        return staffId;
    }

    public void setStaffId(int staffId) {
        this.staffId = staffId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(shopName);
        dest.writeString(wwId);
        dest.writeString(productName);
        dest.writeString(name);
        dest.writeString(wx);
        dest.writeString(mobile);
        dest.writeString(address);
        dest.writeString(content);
        dest.writeString(createDate);
        dest.writeString(staffName);
        dest.writeString(underDate);
        dest.writeInt(status);
        dest.writeInt(contacted);
        dest.writeInt(staffId);
    }
}
